package com.wanho.java146.pojo;


import java.util.List;

/**
 * 保姆
 * (`id`, `firstName`, `initial`, `lastName`, `taxfileNumber`)
 */
public class Employee {

    private Integer id;

    private String taxfileNumber;
    //每个保姆的名字
    private Name name;



    //一个保姆可以有多个雇佣关系
    private List<Employment> employmentList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaxfileNumber() {
        return taxfileNumber;
    }

    public void setTaxfileNumber(String taxfileNumber) {
        this.taxfileNumber = taxfileNumber;
    }

    public Name getName() {
        return name;
    }

    public void setName(Name name) {
        this.name = name;
    }

    public List<Employment> getEmploymentList() {
        return employmentList;
    }

    public void setEmploymentList(List<Employment> employmentList) {
        this.employmentList = employmentList;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", taxfileNumber='" + taxfileNumber + '\'' +
                ", name=" + name +
                ", employmentList=" + employmentList +
                '}';
    }
}
